package com.inforich.app.api.service;

import com.inforich.app.api.dto.TransportDTO;
import com.inforich.app.api.vo.TransportVO;
import com.inforich.app.component.LoginUser;
import com.inforich.app.component.LoginUserApp;
import com.inforich.common.core.domain.AjaxResult;
import com.inforich.orderManage.domain.Booking;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/31
 */
public interface IAppTransportService {

  TransportVO getInfo(String id);

  /**
   * 获取状态(开始发车 运输结束)
   */
  AjaxResult getTransportStatus(LoginUserApp loginUserApp, TransportDTO dto);

  AjaxResult startTransport(LoginUserApp loginUserApp, TransportDTO dto);

  AjaxResult endTransport(LoginUserApp loginUserApp, TransportDTO dto);

  String getBookingStatus(Booking booking);
}
